//
//  KABMallBuyCCell.m
//  kabu
//
//  Created by XiangDongMBP on 2017/2/25.
//  Copyright © 2017年 East. All rights reserved.
//

#import "KABMallBuyCCell.h"
#import "KABModel.h"
#import "GlobalHeader.h"
#import "UIColor+XDHex.h"

@implementation KABMallBuyCCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.contentView.layer.masksToBounds = YES;
    self.contentView.layer.cornerRadius = 26.0 / 2.0;
}

- (void)configViewWithModelItem:(KABProModelListItem *)item isSel:(BOOL)isSel {
    self.titleLabel.text = item.content;
    self.titleLabel.textColor = isSel ? [UIColor whiteColor] : [UIColor xd_colorWithHex:KABGlobalColorTitleFont];
    
    self.contentView.backgroundColor = isSel ? [UIColor xd_colorWithHex:KABGlobalColorTabBarItemColor] : [UIColor xd_colorWithHex:KABGlobalColorTableSepLine];
}

@end
